package com.yztc.ui.classify;

import android.content.Context;

import com.yztc.base.IModle;
import com.yztc.base.IPresenter;
import com.yztc.base.IView;
import com.yztc.bean.classify.ClassifyBean;
import com.yztc.bean.classify.ClassifyDataBean;

import java.util.List;

/**
 * Created by MengLingzhang on 2016/10/6.
 */
public class ClassifyContract {

    public interface View extends IView {
        public void ongetVerticalClassifyDataBean(List<ClassifyDataBean>classifyDataBeen);

        public void onGetVerticalFailed(Throwable error);
    }

    public interface Modle extends IModle {
        public void getVerticalClassifyBean(String baseUrl, OnLoadListener loadListener);
    }

    public interface Presenter extends IPresenter {
        public void getVerticalClassifyDataBean(Context context);
    }


    public interface OnLoadListener {
        public void onSuccess(ClassifyBean classifyBean);
        public void onFailure(Throwable e);
    }
}
